Function.prototype.myApply = function (obj, paramArr) {
    let context = obj || window;
    context.fn = this;
    let result = context.fn(...paramArr);
    delete context.fn;
    return result;
}